package com.example.demo.repository;

import com.example.demo.entity.Product.WorkProcedure;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface WorkProcedureRepository extends CrudRepository<WorkProcedure, String> {
    @Query("select wp from WorkProcedure wp where wp.wpCode = :wpCode")
    WorkProcedure getName(String wpCode);
}
